package com.huilian.iotbox.admin.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.vo.UserInfo;

import java.util.List;

/**
 * @author 少凡
 * @date 2020/2/29 10:26
 */
public interface RolePermissionService {

    ServerResponse authorize(Integer roleId, Integer permissionId);

    Integer deleteByPermissionId(Integer id);

    ServerResponse authorizeBatch(List<Integer> newPermissionIdList, Integer roleId, UserInfo userInfo, Integer platformType);

    int updateSelectByPermissionId(Integer permissionId, boolean selected);
}
